from django.urls import path
from .views import TestView, OrderView, UpdateOrderView, UpdateOrderCommitView

urlpatterns = [
    path('order_index/', TestView.as_view()),
    path('api/v1.0/orders', OrderView.as_view()),
    path('api/v1.0/orders/', OrderView.as_view()),
    path('api/v1.0/user/orders/', OrderView.as_view()),
    path('api/v1.0/orders/<int:order_id>/status/', UpdateOrderView.as_view()),
    path('api/v1.0/orders/<int:order_id>/status', UpdateOrderView.as_view()),
    path('api/v1.0/orders/<int:order_id>/comment/', UpdateOrderCommitView.as_view()),
    path('api/v1.0/orders/<int:order_id>/comment', UpdateOrderCommitView.as_view()),

]


